import service from '@/utils/http'

const api = {
    /* 获取验证码 */
    getCaptcha() {
        return service({
            method: 'get',
            url: '/user/getCaptcha',
        })
    },
    /* 用户注册 */
    userRegister(data:object) {
        return service({
            method: 'post',
            url: '/user/register',
            data,
        })
    },
    /* 发送邮件 */
    sendEmail(data:object) {
        return service({
            method: 'post',
            url: '/user/sendEmail',
            data,
        })
    },

}

export default api